﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pageshopinfo.aspx.cs" Inherits="RetailOnlineSite.Security.pageshopinfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script language="javascript" type="text/javascript" src="../Js/tiny_mce/jquery.tinymce.js"></script>

    <link href="../Js/tiny_mce/themes/advanced/skins/default/ui.css" rel="Stylesheet"
        type="text/css" />
    <link href="../Js/tiny_mce/plugins/inlinepopups/skins/clearlooks2/window.css" rel="Stylesheet"
        type="text/css" />

    <script type="text/javascript">

        $(document).ready(function() {
            var tabContainers = $('div.tabs > div');

            $('div.tabs ul.tabNavigation a').click(function() {
                tabContainers.hide().filter(this.hash).show();

                $('div.tabs ul.tabNavigation li').removeClass('selected');
                $(this).parent().addClass('selected');

                return false;
            }).filter(':first').click();
            
            LoadMCE();

        });

        function LoadMCE() 
        {
            $('textarea.tinymce').tinymce({
                remove_script_host: false,
                convert_urls: false,
                paste_auto_cleanup_on_paste: false,
                mode: "exact",
                elements: "txt_Detail,contactinfo,signature",
                // Location of TinyMCE script
                script_url: '../../../Js/tiny_mce/tiny_mce.js',

                // General options
                height: 0,
                theme: "advanced",
                skin: "o2k7",
                skin_variant: "silver",
                language: "vi",

                plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

                // Theme options
                theme_advanced_buttons1: "bold,italic,underline,|,forecolor,backcolor,fontselect,fontsizeselect,|,emotions,|,image,|,outdent,indent,|,undo,redo,|,justifyleft,justifycenter,justifyright,justifyfull,|,link,unlink,code",
                theme_advanced_buttons2: "",
                theme_advanced_buttons3: "",
                theme_advanced_buttons4: "",
                theme_advanced_toolbar_location: "top",
                theme_advanced_toolbar_align: "left",
                //theme_advanced_statusbar_location: "bottom",
                //theme_advanced_resizing: true,

                // Example content CSS (should be your site CSS)
                content_css: "../../Js/tiny_mce/themes/advanced/skins/o2k7/content.css",

                // Style formats 
                style_formats: [
                    { title: 'Bold text', inline: 'b' },
                    { title: 'Red text', inline: 'span', styles: { color: '#ff0000'} },
                    { title: 'Red header', block: 'h1', styles: { color: '#ff0000'} },
                    { title: 'Example 1', inline: 'span', classes: 'example1' },
                    { title: 'Example 2', inline: 'span', classes: 'example2' },
                    { title: 'Table styles' },
                    { title: 'Table row 1', selector: 'tr', classes: 'tablerow1' }
                ],

                // Drop lists for link/image/media/template dialogs
                template_external_list_url: "lists/template_list.js",
                external_link_list_url: "lists/link_list.js",
                external_image_list_url: "lists/image_list.js",
                media_external_list_url: "lists/media_list.js",

                // Replace values for the template plugin
                template_replace_values: {
                    username: "Some User",
                    staffid: "991234"
                },
                //                setup: function(ed) {
                //                    ed.onKeyDown.add(function(ed, e) {
                //                        e.preventDefault();
                //                    });
                //                }
                //save_onsavecallback: ShowCurrentTime,
                //save_oncancelcallback: ShowCurrentTime
            });
        }
        
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" class="menu" cellspacing="0">
        <tr>
            <td class="menuheader">
                Thông tin Shop
            </td>
        </tr>
        <tr>
            <td>
                <div class="tabs">
                    <ul class="tabNavigation">
                        <li><a href="#account"><span>Thông tin cửa hàng</span></a></li>
                        <li><a href="#basic"><span>Cách thức thanh toán</span></a></li>
                    </ul>
                    <!-- tab containers -->
                    <div id="account">
                        <table cellspacing="10px" style="text-align: justify; width: 100%">
                            <tr>
                                <td>
                                </td>
                                <td style=" width: auto">
                                    <img id="img-avatar" src="http://static.nava.vn/nava_shop/res/images/default/avatar-shop-120.jpg"
                                        original="http://static.nava.vn/nava_shop/res/images/default/avatar-shop-120.jpg">
                                </td>
                            </tr>
                            <tr>
                                <td style="text-align: justify; width: 120px">
                                    Tên shop:
                                </td>
                                <td>
                                    <asp:TextBox ID="txtShopName" runat="server"></asp:TextBox>
                                </td>
                                <td>
                                    <a href="#ViewShop"></a>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Hình đại diện :
                                </td>
                                <td>
                                    <asp:FileUpload ID="FileUpload1" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                </td>
                                <td colspan="2" align="left">
                                    <asp:Label Font-Size="8" Font-Italic="true" runat="server">Dung lượng không quá 3Mb</asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Địa chỉ shop :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Thành phố:
                                </td>
                                <td>
                                    <asp:DropDownList ID="drpCity" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Quận huyện:
                                </td>
                                <td>
                                    <asp:DropDownList ID="drpDistrict" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Điện thoại :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtTelephone" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Nick chat :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtNick" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Email :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Khu vực bán :
                                </td>
                                <td>
                                    <asp:DropDownList ID="drpSaleArea" runat="server">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            </table>
                            <div id="basic">
                        <table cellspacing="10px" style="text-align: justify; width: 100%">
                            <tr>
                                <td>
                                    Thông báo của shop :
                                </td>
                                <td>
                                    <asp:TextBox ID="txtShopMessage" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    Thông tin liên hệ và hướng dẫn thanh toán :
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <textarea id="elm1" name="elm1" rows="15" cols="80" class="tinymce" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
